mtd: mxc_nand: Fix crash after MTD resync
authorMarek Vasut <[email protected]>
Wed, 3 Jul 2013 00:34:34 +0000 (02:34 +0200)
committerScott Wood <[email protected]>
Fri, 12 Jul 2013 21:12:33 +0000 (16:12 -0500)
commit1c903694370259738abccc67ff0d6e5eaf7886f9
treeb6171ed526871e6ebe3dd8a0c75417f8476d58f4
parent225fd8c5d4556547896a5d32ee092a258f3df638
mtd: mxc_nand: Fix crash after MTD resync

The driver triggered a BUG() in nand_base.c:3214/nand_scan_tail()
because the ecc.strength was not set in NAND_ECC_HW_SYNDROME ECC
mode.

Signed-off-by: Marek Vasut <[email protected]>
Cc: Benoit Thebaudeau <[email protected]>
Cc: Fabio Estevam <[email protected]>
Cc: Scott Wood <[email protected]>
Cc: Stefano Babic <[email protected]>
drivers/mtd/nand/mxc_nand.c